//
//  UIBarButtonItem+CommomBarButtonItem.h
//  ZYGWApp
//
//  Created by More on 14-7-9.
//  Copyright (c) 2014年 ZYGW. All rights reserved.
//

#import <UIKit/UIKit.h>
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
@interface UIBarButtonItem (CommomBarButtonItem)

/**
 * @brief 返回BBT
**/
+ (UIBarButtonItem*)createBackBBTframe:(CGRect)frame isShowArrow:(BOOL)show isShowTitle:(BOOL)showTitle target:(id)target action:(SEL)action;

/**
 *  @brief 纯文字BBT
**/
+ (UIBarButtonItem*)createDefaultTitleBBTFrame:(CGRect)frame title:(NSString*)title EdgeInsets:(UIEdgeInsets)edgeInsets font:(UIFont*)font background:(UIColor*)bgColor target:(id)target action:(SEL)action;

/**
 *  @brief 纯图片BBT
**/
+ (UIBarButtonItem*)createDefaultImageBBTFrame:(CGRect)frame image:(UIImage*)image background:(UIColor*)bgColor EdgeInsets:(UIEdgeInsets)edgeInsets target:(id)target action:(SEL)action;

/**
 *  @brief 图片加文字BBT
 **/
+ (UIBarButtonItem*)createImageAndTitleBBTFrame:(CGRect)frame image:(UIImage*)image background:(UIColor*)bgColor imgEdgeInsets:(UIEdgeInsets)imgedgeInsets title:(NSString*)title titleEdgeInsets:(UIEdgeInsets)titledgeInsets titlefont:(UIFont*)titlefont target:(id)target action:(SEL)action;

//右边button
+ (UIBarButtonItem*)createRightImgBBTframe:(CGRect)frame imgName:(NSString*)imgName isShowArrow:(BOOL)show isShowTitle:(BOOL)showTitle target:(id)target action:(SEL)action;

//左边button
+ (UIBarButtonItem*)createLeftImgBBTframe:(CGRect)frame imgName:(NSString*)imgName isShowArrow:(BOOL)show isShowTitle:(BOOL)showTitle target:(id)target action:(SEL)action;


@end
